package org.xxmi.thread;

public class PrintNum extends Thread {
    public PrintNum() {
        super();
    }

    public void run() {
        for (int i = 1; i <= 100; i++) {
            if (i % 2 == 0) {
                System.out.println(Thread.currentThread().getName() + ":" + i);
            }
        }
    }

    public PrintNum(String threadName) {
        super(threadName);
    }
}
